package com.myrslok;

import com.myrslok.jar.manifest.ManifestHeader;
import com.myrslok.util.StringUtil;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

public class ClassPathManifestHeader implements ManifestHeader {
    private List<String> jarNames = new ArrayList<String>();

    public void addJarName(@NotNull final String jarName) {
        jarNames.add(jarName);
    }

    @NotNull
    @Override
    public String getLabel() {
        return "Class-Path";
    }

    @NotNull
    @Override
    public String getValue() {
        return StringUtil.join(" ", jarNames);
    }
}
